<?php
include_once 'classes/controls/FormControl.php';
class ImageButton extends FormControl{
	var $ImageSource;
	function ImageButton($form, $name,$src,$value='', $attributes='') {
		$this->ImageSource = $src;
		$this->FormControl($form, $name, $value, $attributes);
	}
	function Render(){
		$inputname = $this->InputName;
		$value = $this->Value;
		$src = $this->ImageSource;
		$attr = $this->Attributes;
		return "<input type='image' src='$src' name='$inputname' value='$value' '$attr'>";
	}
}
?>